﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CrossLayerCommunication;
using CrossLayerCommunication.FluentValidation;

namespace UnitTest.FluentValidation
{
    public static class FluentValidationTestHelper
    {
        internal static readonly IMessage ErrorMessage = MessageHelper.CreateOrGetMessage(-1);

        public static IFluentValidation<T> TestingFluentValidation<T>(this T valueToTest)
        {
            return valueToTest.FluentValidation(ErrorMessage);
        }
    }
}
